package com.health.tablebean;

import net.tsz.afinal.annotation.sqlite.Id;
import net.tsz.afinal.annotation.sqlite.Table;

/**
 * @author Administrator 家庭医生签约图片数据
 * 
 */
@Table(name = "JTYS_SIGNPIC")
public class JTYS_SignPictureData {

	// 上传图片接口：
	// 文件名称：
	// 客户身份证号_签约时间_用户类型_创建时间时分秒_随机数.png
	//
	// 用户类型 1 医生 签名 2 患者签名 3 其他照片
	//
	// 370883198806046521_2017-12-07_1_20171207104138_8140.png
	//
	//
	// 本地测试地址：
	// http://192.168.10.110:8080/health-apis-web/api/app/jtys/signPic/uploadSignPic/uploadPic

	/** 主键编号 */
	@Id(column = "ID")
	private String ID;
	// 身份证号
	private String cardNum;
	// 登录名
	private String ysLoginNumber;
	// 图片名字
	private String photoName;
	// 图片地址路径
	private String photoPath;
	// 机构id
	private String createOrgId;
	// 创建时间
	private String createtime;
	// 创建人
	private String createrId;

	private String sign;// 0
	private String source;// 0
	private String isUpdate;// Y未上传 N已上传

	// 标识照片
	private String res0;
	// 标识uuid  与签约表关联
	private String res1;
	// 标识备用字段
	private String res2;
	// 标识备用字段
	private String res3;
	// 标识备用字段
	private String res4;
	// 标识备用字段
	private String res5;
	// 标识备用字段
	private String res6;
	// 标识备用字段
	private String res7;
	// 标识备用字段
	private String res8;

	// 标识备用字段
	private String res9;

	public JTYS_SignPictureData() {
	}

	public JTYS_SignPictureData(String ID, String cardNum, String ysLoginNumber, String photoName, String photoPath,
			String createOrgId, String createtime, String createrId, String sign, String source, String isUpdate) {
		this.ID = ID;
		this.cardNum = cardNum;
		this.ID = ID;
		this.cardNum = cardNum;
		this.ysLoginNumber = ysLoginNumber;
		this.photoName = photoName;
		this.photoPath = photoPath;
		this.createOrgId = createOrgId;
		this.createtime = createtime;
		this.createrId = createrId;
		this.sign = sign;
		this.source = source;
		this.isUpdate = isUpdate;
	}

	public String getID() {
		return ID;
	}

	public void setID(String string) {
		ID = string;
	}

	public String getCardNum() {
		return cardNum;
	}

	public void setCardNum(String cardNum) {
		this.cardNum = cardNum;
	}

	public String getYsLoginNumber() {
		return ysLoginNumber;
	}

	public void setYsLoginNumber(String ysLoginNumber) {
		this.ysLoginNumber = ysLoginNumber;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getPhotoName() {
		return photoName;
	}

	public void setPhotoName(String photoName) {
		this.photoName = photoName;
	}

	public String getPhotoPath() {
		return photoPath;
	}

	public void setPhotoPath(String photoPath) {
		this.photoPath = photoPath;
	}

	public String getCreateOrgId() {
		return createOrgId;
	}

	public void setCreateOrgId(String createOrgId) {
		this.createOrgId = createOrgId;
	}

	public String getCreatetime() {
		return createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	public String getCreaterId() {
		return createrId;
	}

	public void setCreaterId(String createrId) {
		this.createrId = createrId;
	}

	public String getRes0() {
		return res0;
	}

	public void setRes0(String res0) {
		this.res0 = res0;
	}

	public String getRes1() {
		return res1;
	}

	public void setRes1(String res1) {
		this.res1 = res1;
	}

	public String getRes2() {
		return res2;
	}

	public void setRes2(String res2) {
		this.res2 = res2;
	}

	public String getRes3() {
		return res3;
	}

	public void setRes3(String res3) {
		this.res3 = res3;
	}

	public String getRes4() {
		return res4;
	}

	public void setRes4(String res4) {
		this.res4 = res4;
	}

	public String getRes5() {
		return res5;
	}

	public void setRes5(String res5) {
		this.res5 = res5;
	}

	public String getRes6() {
		return res6;
	}

	public void setRes6(String res6) {
		this.res6 = res6;
	}

	public String getRes7() {
		return res7;
	}

	public void setRes7(String res7) {
		this.res7 = res7;
	}

	public String getRes8() {
		return res8;
	}

	public void setRes8(String res8) {
		this.res8 = res8;
	}

	public String getRes9() {
		return res9;
	}

	public void setRes9(String res9) {
		this.res9 = res9;
	}

	public String getIsUpdate() {
		return isUpdate;
	}

	public void setIsUpdate(String isUpdate) {
		this.isUpdate = isUpdate;
	}

	public String type() {
		return photoPath.split("_")[2];
	}

	public static String type(String path) {
		return path.split("_")[2];
	}

	@Override
	public String toString() {
		return "JTYS_SignPictureData{" +
				"ID='" + ID + '\'' +
				", cardNum='" + cardNum + '\'' +
				", ysLoginNumber='" + ysLoginNumber + '\'' +
				", photoName='" + photoName + '\'' +
				", photoPath='" + photoPath + '\'' +
				", createOrgId='" + createOrgId + '\'' +
				", createtime='" + createtime + '\'' +
				", createrId='" + createrId + '\'' +
				", sign='" + sign + '\'' +
				", source='" + source + '\'' +
				", isUpdate='" + isUpdate + '\'' +
				", res0='" + res0 + '\'' +
				", res1='" + res1 + '\'' +
				", res2='" + res2 + '\'' +
				", res3='" + res3 + '\'' +
				", res4='" + res4 + '\'' +
				", res5='" + res5 + '\'' +
				", res6='" + res6 + '\'' +
				", res7='" + res7 + '\'' +
				", res8='" + res8 + '\'' +
				", res9='" + res9 + '\'' +
				'}';
	}
}
